package chapter03;

import java.util.ArrayList;
import java.util.List;


public class Q6 {


    public static void pass(int m, int n) {
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 1; i <= n; i++) {
            list.add(n);
        }
    }



    public static List<Integer> makeList(int N) {
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            list.add(i);
            list.trimToSize();
        }
        return list;
    }


    public static void main(String[] args) {
        List<Integer> list = makeList(16);
        System.out.println(list);
    }


}
